#include "ResizeReverseMappingDialog.h"
#include "ui_ResizeReverseMappingDialog.h"

ResizeReverseMappingDialog::ResizeReverseMappingDialog(QWidget *parent) :
    QDialog(parent)
{
    ui.setupUi(this);
}

ResizeReverseMappingDialog::~ResizeReverseMappingDialog()
{
}

ResizeReverseMappingMode ResizeReverseMappingDialog::GetMode()
{
    switch(ui.cbMode->currentIndex())
    {
    case 0:
        return Order0;
    case 1:
    default:
        return Bilinear;
    }
}

int ResizeReverseMappingDialog::GetHeight()
{
    return ui.txtHeight->text().toInt();
}

int ResizeReverseMappingDialog::GetWidth()
{
    return ui.txtWidth->text().toInt();
}
